'''
爬取网址(zhong guo 土地市场网)：
https://www.landchina.com/#/supplyPlan

此网址存在，调试反爬机制
    爬取前要先解除调试反爬机制(无法打开F12，鼠标右键无法使用)
    解除示例：https://shimo.im/docs/5xkGoQ9R7jIarGkX

搜索关键词： window.close() 、 123
监听键盘事件 keydown
监听鼠标事件 contextmenu
将其注释掉！！！
'''


import requests

headers = {
    'Accept': 'application/json, text/plain, */*',
    'Accept-Language': 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6',
    'Cache-Control': 'no-cache',
    'Connection': 'keep-alive',
    'Content-Type': 'application/json',
    'Hash': '6e7cc6446edbfc3f86405d8a1922c3e606a6141d937f0b117103b60ab6c1570f',
    'Origin': 'https://www.landchina.com',
    'Pragma': 'no-cache',
    'Referer': 'https://www.landchina.com/',
    'Sec-Fetch-Dest': 'empty',
    'Sec-Fetch-Mode': 'cors',
    'Sec-Fetch-Site': 'same-site',
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 Edg/128.0.0.0',
    'sec-ch-ua': '"Chromium";v="128", "Not;A=Brand";v="24", "Microsoft Edge";v="128"',
    'sec-ch-ua-mobile': '?0',
    'sec-ch-ua-platform': '"Windows"',
}

json_data = {
    'pageNum': 1,
    'pageSize': 10,
    'startDate': '',
    'endDate': '',
}

response = requests.post('https://api.landchina.com/tGyjh/plan/list', headers=headers, json=json_data)
# text = response.text
print(response.json())